import request from '@/utils/request'

// 查询转正审批列表
export function listOaProbationApproval(query) {
  return request({
    url: '/module/oaProbationApproval/list',
    method: 'get',
    params: query
  })
}

// 查询转正审批详细
export function getOaProbationApproval(id) {
  return request({
    url: '/module/oaProbationApproval/' + id,
    method: 'get'
  })
}

// 新增转正审批
export function addOaProbationApproval(data) {
  return request({
    url: '/module/oaProbationApproval',
    method: 'post',
    data: data
  })
}

// 修改转正审批
export function updateOaProbationApproval(data) {
  return request({
    url: '/module/oaProbationApproval',
    method: 'put',
    data: data
  })
}

// 删除转正审批
export function delOaProbationApproval(id) {
  return request({
    url: '/module/oaProbationApproval/' + id,
    method: 'delete'
  })
}
